<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title> 小程序管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
  <style type="text/css">
  
  </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">  </div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="{:U('Index/index')}">首页</a></li>
      <li class="layui-nav-item"><a href="{:U('InfoCate/index')}">分类信息管理</a></li>
      <li class="layui-nav-item"><a href="{:U('ShopCate/index')}">好店管理</a></li>
      <li class="layui-nav-item layui-this"><a href="{:U('Quan/index')}">同城圈管理</a></li>
      <li class="layui-nav-item"><a href="{:U('Member/index')}">用户管理</a></li>
      <li class="layui-nav-item"><a href="{:U('Home/Index/index')}">切换小程序</a></li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="{$Think.session.wechat.headimg}" class="layui-nav-img">
          {$Think.session.wechat.nickname}
        </a>
        <dl class="layui-nav-child">
          <dd><a href="{:U('Home/Index/index')}">切换小程序</a></dd>
          <!-- <dd><a href="">安全设置</a></dd> -->
        </dl>
      </li>
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="{$Think.session.headimgurl}" class="layui-nav-img">
          {$Think.session.nickname}
        </a>
        <dl class="layui-nav-child">
          <dd><a href="{:U('Home/Public/logout')}">退出登录</a></dd>
          <!-- <dd><a href="">安全设置</a></dd> -->
        </dl>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item"><a href="{:U('Quan/index')}">同城圈管理</a></li>
        <li class="layui-nav-item"><a href="{:U('QuanReply/index')}">回复管理</a></li>
        <li class="layui-nav-item"><a href="{:U('News/index')}">资讯管理</a></li>
        <li class="layui-nav-item"><a href="{:U('News/cate')}">资讯分类管理</a></li>
        <li class="layui-nav-item"><a href="{:U('Zhibo/index')}">直播管理</a></li>
        <li class="layui-nav-item layui-this"><a href="{:U('Quan/gift')}">礼物价格管理</a></li>
        <li class="layui-nav-item"><a href="{:U('Quan/banner')}">轮播图管理</a></li>
        <li class="layui-nav-item"><a href="{:U('Quan/topicList')}">热门话题管理</a></li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding:0 15px;">
      <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>礼物价格管理</legend>
      </fieldset>
       
      <form class="layui-form" action="" method="post">
        <foreach name="list" item="item">
        <div class="layui-form-item">
          <label class="layui-form-label">{$item.name}</label>
          <div class="layui-input-inline">
            <input type="number" name="list[{$item.id}]" lay-verify="required" placeholder="请输入{$item.name}的价格" autocomplete="off" class="layui-input" value="{$item.price}">
          </div>
          <div class="layui-form-mid layui-word-aux">（单位：元）</div>
        </div>
        </foreach>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="*">立即提交</button>
            <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
          </div>
        </div>
      </form>
    </div>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © 2017-2018 <a href="https://www.58zltc.com" target="_blank">  </a> All Rights Reserved.
  </div>
</div>
<script src="__PUBLIC__/layui/layui.js" charset="utf-8"></script>
<script>
layui.extend({
  areas: '__PUBLIC__/layui/lay/modules/areas' // {/}的意思即代表采用自有路径，即不跟随 base 路径
})
//JavaScript代码区域
layui.use(['element','form','areas'], function(){
  var element = layui.element
  ,$ = layui.jquery
  ,layer = layui.layer
  ,form = layui.form
  ,areas = layui.areas;
  
  areas.init({
      elem: ".three",
      data: "__PUBLIC__/layui/lay/modules/areas.json",
      level: 3,
      provFilter: "sheng",   //省份过滤器
      cityFilter: "shi",   //城市过滤器
      distFilter: "xian",   //区县过滤器
      streetFilter: "street", //街道过滤器
      defaults: {$arr},   //默认选中值
  });

  form.on('submit(*)', function(data){
    $.post('#', data.field, function(e) {
      layer.alert(e.info);
    });
    return false;
  });
});
</script>
</body>
</html>
